package fleet_management

class VehicleOnDuty {
	String vehicleNumber
	Long kmReadingInitial
	Long kmReadingFinish
	String typeOfUse
	Long totalPrivateUseKm
	Long rateOfPrivateUseKm
	Long totalIncomeFromPrivateUse
	String adminRole
	
	static constraints = {
		vehicleNumber(blank:false,nullable:true)
		kmReadingInitial(blank:false,nullable:true)
		kmReadingFinish(blank:false,nullable:true)
		typeOfUse(blank:false,nullable:true)
		totalPrivateUseKm(blank:true,nullable:true)
		rateOfPrivateUseKm(blank:true,nullable:true)
		totalIncomeFromPrivateUse(blank:true,nullable:true)
	}
	String toString(){
		return"$vehicleNumber"
	}
}
